package com.stone.design.patterns.iterator.employeeiterator.javaiterator;

import com.stone.design.patterns.iterator.employeeiterator.Company;
import com.stone.design.patterns.iterator.employeeiterator.Employee;
import com.stone.design.patterns.iterator.employeeiterator.Iterator;
import com.stone.design.patterns.iterator.employeeiterator.LiIterator;

/**
 * @description 删除get方法
 * @Time 2018/4/12 13:32
 * Created by Stone on 2018/4/12.
 */

public class CompanLi implements Company{

    Employee[] arrays = new Employee[3];

    public CompanLi() {
        arrays[0] = new Employee("stone", 19, "男", "测试员");
        arrays[1] = new Employee("stone", 19, "男", "测试员");
        arrays[2] = new Employee("stone", 19, "男", "测试员");
    }


    @Override
    public Iterator iterator() {
        return new LiIterator(arrays);
    }


}
